// -------------------------------------------------------------------------
//    @FileName         :   NFGameServerPlugin.cpp
//    @Author           :   LvSheng.Huang
//    @Date             :   2012-07-14 08:51
//    @Module           :   NFGameServerPlugin
//
// -------------------------------------------------------------------------

#include "NFGameTableSinkPlugin.h"
#include "NFGameTableSinkModule.h"


#ifdef NF_DYNAMIC_PLUGIN

NF_EXPORT void DllStartPlugin(NFIPluginManager* pm)
{
    CREATE_PLUGIN(pm, NFGameTableSinkPlugin)

};

NF_EXPORT void DllStopPlugin(NFIPluginManager* pm)
{
    DESTROY_PLUGIN(pm, NFGameTableSinkPlugin)
};

#endif
//////////////////////////////////////////////////////////////////////////

const int NFGameTableSinkPlugin::GetPluginVersion()
{
    return 0;
}

const std::string NFGameTableSinkPlugin::GetPluginName()
{
    return GET_CLASS_NAME(NFGameTableSinkPlugin);
}

void NFGameTableSinkPlugin::Install()
{
    REGISTER_MODULE(pPluginManager, NFIGameTableSinkModule, NFGameTableSinkModule);
}

void NFGameTableSinkPlugin::Uninstall()
{
    UNREGISTER_MODULE(pPluginManager, NFIGameTableSinkModule, NFGameTableSinkModule);
}
